message(STATUS "burnpipe lib: " ${burnpipe})

add_executable(demo_simple demo_simple.cc)
target_link_libraries(demo_simple ${burnpipe} burnpipe)


add_executable(demo_sleep demo_sleep.cc)
target_link_libraries(demo_sleep burnpipe)


if(USE_OPENCV)
    if(WIN32)
        set(OpenCV_DIR "C:\\opencv\\build\\x64\\vc15\\lib") # replace on your path
        set(OpenCV_BIN_DIR "C:\\opencv\\build\\x64\\vc15\\bin") # replace on your path
    endif()

    find_package(OpenCV REQUIRED)
    include_directories(${OpenCV_INCLUDE_DIRS})
    add_compile_definitions(USE_OPENCV)
    message(STATUS "we are using opencv from local!!")
    message(STATUS "local opencv: " ${OpenCV_LIBS})
endif(USE_OPENCV)

if(USE_OPENCV)
    add_executable(demo_param demo_param.cc)
    target_link_libraries(demo_param burnpipe ${OpenCV_LIBS})    
endif(USE_OPENCV)
